package com.dragon.modules.yuegou.entity.member;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.member.WxOpenidRefOpenIdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 会员openid关系表实体类<br>
 * 对应的表为：mem_wx_openid_ref<br>
 * 
 * @author pbuilder generated
 * @date 2021-09-08 11:13:39
 * @company sgy
 * @version 2.0
 */
@TableName("mem_wx_openid_ref")
@ApiModel(description = "会员openid关系表")
public class WxOpenidRefEntity {

    /**  */
	protected String id;

    /** 会员id */
	@ApiModelProperty("会员id")
	protected String memberId;

    /**  */
	protected String wxUnionId;

    /**  */
	protected String wxOpenId;

    /** 支付宝appid */
	@ApiModelProperty("支付宝appid")
	protected String aliAppid;

    /** [枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS */
	@ApiModelProperty("[枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS")
	protected WxOpenidRefOpenIdType openIdType;

    /** 第三方 appid */
	@ApiModelProperty("第三方 appid")
	protected String appid;

    /**  */
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空会员openid关系表实体对象
	 */
	public WxOpenidRefEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个会员openid关系表实体对象
	 * 
	 * @param other 其它对象
	 */
	public WxOpenidRefEntity(WxOpenidRefEntity other){
		super();
     	this.id = other.id;
     	this.memberId = other.memberId;
     	this.wxUnionId = other.wxUnionId;
     	this.wxOpenId = other.wxOpenId;
     	this.aliAppid = other.aliAppid;
     	this.openIdType = other.openIdType;
     	this.appid = other.appid;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取会员id
	 * 
	 * @return memberId 会员id
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员id
	 * 
	 * @param memberId 会员id
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取
	 * 
	 * @return wxUnionId 
	 */
	public String getWxUnionId() {
		return wxUnionId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param wxUnionId 
	 */
	public void setWxUnionId(String wxUnionId) {
		this.wxUnionId = wxUnionId;
	}

	/**
	 * 获取
	 * 
	 * @return wxOpenId 
	 */
	public String getWxOpenId() {
		return wxOpenId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param wxOpenId 
	 */
	public void setWxOpenId(String wxOpenId) {
		this.wxOpenId = wxOpenId;
	}

	/**
	 * 获取支付宝appid
	 * 
	 * @return aliAppid 支付宝appid
	 */
	public String getAliAppid() {
		return aliAppid;
	}
  	
	/**
	 * 设置支付宝appid
	 * 
	 * @param aliAppid 支付宝appid
	 */
	public void setAliAppid(String aliAppid) {
		this.aliAppid = aliAppid;
	}

	/**
	 * 获取[枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS
	 * 
	 * @return openIdType [枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS
	 */
	public WxOpenidRefOpenIdType getOpenIdType() {
		return openIdType;
	}
  	
	/**
	 * 设置[枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS
	 * 
	 * @param openIdType [枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS
	 */
	public void setOpenIdType(WxOpenidRefOpenIdType openIdType) {
		this.openIdType = openIdType;
	}

	/**
	 * 获取第三方 appid
	 * 
	 * @return appid 第三方 appid
	 */
	public String getAppid() {
		return appid;
	}
  	
	/**
	 * 设置第三方 appid
	 * 
	 * @param appid 第三方 appid
	 */
	public void setAppid(String appid) {
		this.appid = appid;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("WxOpenidRefEntity{").
			append("id=").append(id).
			append(",memberId=").append(memberId).
			append(",wxUnionId=").append(wxUnionId).
			append(",wxOpenId=").append(wxOpenId).
			append(",aliAppid=").append(aliAppid).
			append(",openIdType=").append(openIdType).
			append(",appid=").append(appid).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public WxOpenidRefEntity copy() {
		return new WxOpenidRefEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 会员id */
	public static final String COL_MEMBER_ID = "member_id";

    /**  */
	public static final String COL_WX_UNION_ID = "wx_union_id";

    /**  */
	public static final String COL_WX_OPEN_ID = "wx_open_id";

    /** 支付宝appid */
	public static final String COL_ALI_APPID = "ali_appid";

    /** [枚举]openid类型：0-悦购小程序-YGIRL、1-悦荷包小程序-WALLET、2-悦商圈公众号-YSQ、3-安卓APP-ANDRIOD、4-IOS-IOS */
	public static final String COL_OPEN_ID_TYPE = "open_id_type";

    /** 第三方 appid */
	public static final String COL_APPID = "appid";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";
}
